const http = require("./utils/http.js")
App({
    onLaunch() {
        this.getLoginInfo()
    },
    getLoginInfo() {
        http.get('wx/vip/info').then(data => {
            this.loginId = data.vipId
            wx.reLaunch({url: "/pages/home/home"})
        }).catch(() => {
            this.loginId = null
        })
    },
    loginId: ""
})
